/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.risk.service.api;


import com.koron.common.bean.StaffBean;
import com.koron.risk.bean.SourceQueryBean;
import com.koron.risk.domain.LocalHazardSource;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;

public interface LocalHazardSourceService {
    MessageBean<?> list(SourceQueryBean queryBean);

    MessageBean<?> getDetails(String tableName, String riskName, String id);

    MessageBean<?> saveDraft(List<LocalHazardSource> lhsList, StaffBean user);

    MessageBean<?> submit(List<LocalHazardSource> lhsList, StaffBean user, String title, String note, String approvalCode);

    MessageBean<?> discard(List<String> idList, StaffBean user, String title, String note, String approvalCode);

    MessageBean<?> importFromExcel(StaffBean user, MultipartFile file, String title, String note, String corpCode,String approvalCode);

    MessageBean<?> getHistoryList(String code);

    MessageBean<?> getProcessData(String ids);

    MessageBean<?> deleteDraft(String id);

    MessageBean<?> exportList(SourceQueryBean queryBean);
}
